package com.test.application.designPatterns.factory.simpleFactory;

/**
 * 描述: 测试类
 * 作者: yanruizhi
 * 时间: 2024/9/23 17:42
 */
public class Client {
    public static void main(String[] args) {
        CoffeeStore coffeeStore = new CoffeeStore();
        Coffee coffeeA = coffeeStore.orderCoffee("A");
        System.out.println(coffeeA.getName());
        Coffee coffeeB = coffeeStore.orderCoffee("B");
        System.out.println(coffeeB.getName());
    }
}
